package controleur;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import vue.WindowEditor;
/**
 * close the principal window
 * @author morhib & moyart
 *
 */
public class QuitControl implements ActionListener {

	WindowEditor w;
	
	public QuitControl(WindowEditor win) {
		this.w=win;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		this.w.dispose();
	}

}
